﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Zhaoxi.FactoryDeviceSystem.UControls
{
    public partial class ParaTextBox : Label
    {
        public ParaTextBox()
        {
            InitializeComponent();
        }

        //数据   单位   参数名
        private string dataValue="0.0";
        //数据值
        public string DataValue
        {
            get { return dataValue; }
            set { 
                dataValue = value;
                this.Text = dataValue + " " + unit;
             }
        }


        private string unit="M";
        //单位
        public string Unit
        {
            get { return unit; }
            set { 
                unit = value;
                this.Text = dataValue + " " + unit;
            }
        }

        //参数名
        public string ParaName { get; set; }

        public override string Text { get => base.Text;  }
    }
}
